package com.lwq.seata.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lwq.seata.entity.TAmount;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 刘文强
 * @since 2021-09-15
 */
public interface ITAmountService extends IService<TAmount> {

    /**
     * 减金额
     *
     * @param userId
     * @param amount
     * @return
     */
    boolean decrementAmount(Long userId, Long amount);
}
